package org.example.project

import org.example.project.network.SpaceXApi
import org.koin.core.component.KoinComponent
import org.koin.core.component.inject
import org.koin.core.context.startKoin
import org.koin.dsl.module

class KoinHelper : KoinComponent {
    val api: SpaceXApi by inject<SpaceXApi>()
}

fun initKoin() {
    startKoin {
        modules(appModule)
    }
}

